package com.psnoted.backend.dto;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * 更新密码数据请求DTO
 *
 * @author PSNoted Team
 * @version 1.0.0
 */
public class UpdatePasswordsRequest {

    @NotNull(message = "存储数据不能为空")
    @Valid
    private EncryptedStorageData storageData;

    @NotBlank(message = "同步时间不能为空")
    private String syncTime;

    // 构造函数
    public UpdatePasswordsRequest() {}

    public UpdatePasswordsRequest(EncryptedStorageData storageData, String syncTime) {
        this.storageData = storageData;
        this.syncTime = syncTime;
    }

    // Getter和Setter方法
    public EncryptedStorageData getStorageData() {
        return storageData;
    }

    public void setStorageData(EncryptedStorageData storageData) {
        this.storageData = storageData;
    }

    public String getSyncTime() {
        return syncTime;
    }

    public void setSyncTime(String syncTime) {
        this.syncTime = syncTime;
    }

    @Override
    public String toString() {
        return "UpdatePasswordsRequest{" +
                "storageData=" + storageData +
                ", syncTime='" + syncTime + '\'' +
                '}';
    }
}